import { getRequest, postRequest, putRequest, deleteRequest } from '@/utils/request';

/**
 * 岗位
* */
// 创建
export const systemPostCreate = (data) => postRequest('/system/post/create', data);

// 更新
export const systemPostUpdate = (data) => putRequest('/system/post/update', data);

// 删除
export const systemPostDelete = (params) => deleteRequest('/system/post/delete', params);

// 获得
export const systemPostGet = (params) => getRequest('/system/post/get', params);

// 获得分页
export const systemPostPage = (params) => getRequest('/system/post/page', params);

// 导出 Excel
export const systemPostExportExcel = (params) => getRequest('/system/post/export-excel', params);

// 提交
export const systemPostSubmitAudit = (params) => postRequest('/system/post/submit-audit', params);
// 撤销提交
export const systemPostClearSubmitAudit = (params) => postRequest('/system/post/clear-submit-audit', params);
// 审核
export const systemPostAudit = (params) => postRequest('/system/post/audit', params);
// 撤销审核
export const systemPostClearAudit = (params) => postRequest('/system/post/clear-audit', params);
// 保存并审核
export const systemPostCreateAudit = (params) => postRequest('/system/post/create-audit', params);
// 更新并审核
export const systemPostUpdateAudit = (params) => putRequest('/system/post/update-audit', params);
// 关闭
export const systemPostClose = (params) => postRequest('/system/post/close', params);
// 撤销关闭
export const systemPostClearClose = (params) => postRequest('/system/post/clear-close', params);
